#
# Be sure to run `pod lib lint ChartKit.podspec' to ensure this is a
# valid spec and remove all comments before submitting the spec.
#
# Any lines starting with a # are optional, but encouraged
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = "ChartKit"
  s.version          = "0.1.0"
  s.summary          = "A short description of ChartKit."
  s.description      = <<-DESC
                       An optional longer description of ChartKit

                       * Markdown format.
                       * Don't worry about the indent, we strip it!
                       DESC
  s.homepage         = "https://github.com/<GITHUB_USERNAME>/ChartKit"
  # s.screenshots     = "www.example.com/screenshots_1", "www.example.com/screenshots_2"
  s.license          = 'MIT'
  s.author           = { "LiuYanli" => "871633589@qq.com" }
  s.source           = { :git => "https://github.com/<GITHUB_USERNAME>/ChartKit.git", :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.platform     = :ios, '6.0'
  s.requires_arc = false

  s.source_files = 'Pod/Classes'
  s.resources = ['Pod/Assets/**/*.png']

  s.subspec 'Core' do |core|
    core.source_files = ['Pod/Classes/controls/**/*.{h,m}']
    core.resources = ['Pod/Classes/controls/**/*.xib']
    core.requires_arc = false
  end

  s.subspec 'viewControllers' do |viewCs|
    viewCs.source_files = ['Pod/Classes/viewControllers/**/*.{h,m}']
    viewCs.resources = ['Pod/Classes/viewControllers/**/*.xib']
    viewCs.requires_arc = false
  end
  
   s.subspec 'storage' do |stor|
    stor.source_files = ['Pod/Classes/storage/**/*.{h,m}']
    stor.resources = ['Pod/Classes/storage/**/*.xib']
    stor.requires_arc = true
  end

   s.subspec 'FTFMDB' do |ft|
    ft.source_files = ['Pod/Classes/FTFMDB/**/*.{h,m}']
    ft.resources = ['Pod/Classes/FTFMDB/**/*.xib']
  end

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
  # s.dependency 'FMDB'
end
